-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ElfSymbol::raw_symbol
#562
Conversation
Yep, this is an area that needs improvement, and I'm still not sure which path to take. So far I've been adding things like this ad-hoc as people need them, but it desperately needs to be systematically solved for the entire crate.
I'm reluctant to do that because the An alternative to this is to add |
This reverts commit 060f7cc.
Okay, would something like this be better? |
Sym
for ElfSymbol32
and ElfSymbol64
ElfSymbol::as_sym
Co-authored-by: Philip Craig <[email protected]>
Thanks! |
I'm switching one of my projects from
goblin
toobject
, and getting access to raw ELF fields having anElfSymbol32
/ElfSymbol64
seems... frustratingly impossible? Is there any particular reason why theSym
trait isn't just simply implemented forElfSymbol32
andElfSymbol64
, like I've done here in this PR?